SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].CategoriasUpdateCommand
(
	@ID numeric(10, 0),
	@CATEGORIA varchar(100),
	@ACTIVO bit,
	@Original_ID numeric(10, 0),
	@Original_CATEGORIA varchar(100),
	@Original_ACTIVO bit
)
AS
	SET NOCOUNT OFF;
UPDATE [CATEGORIAS] SET [ID] = @ID, [CATEGORIA] = @CATEGORIA, [ACTIVO] = @ACTIVO WHERE (([ID] = @Original_ID) AND ([CATEGORIA] = @Original_CATEGORIA) AND ([ACTIVO] = @Original_ACTIVO));
	
SELECT ID, CATEGORIA, ACTIVO FROM CATEGORIAS WHERE (ID = @ID)
GO
